package com.cuit.springboot.gentry.campus;

import java.io.Serializable;
import java.util.Objects;

public class CampusType implements Serializable {

    private Integer camtype;
    private String desc;

    public Integer getCamtype() {
        return camtype;
    }

    public void setCamtype(Integer camtype) {
        this.camtype = camtype;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    @Override
    public String toString() {
        return "CampusType{" +
                "camtype=" + camtype +
                ", desc='" + desc + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        CampusType that = (CampusType) o;
        return Objects.equals(camtype, that.camtype) &&
                Objects.equals(desc, that.desc);
    }

    @Override
    public int hashCode() {

        return Objects.hash(camtype, desc);
    }
}
